package com.flyxiaozhu.erp.core.entities;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @author flyxiaozhu
 * @date 2019-04-27 0:08
 */
@Entity
@Data
@DynamicInsert
@DynamicUpdate
public class ExpressCompany extends BaseEntity {
    @Column(columnDefinition = "varchar(32) not null default ''comment '快递公司名称'")
    private String name;

    @Column(columnDefinition = "varchar(32) not null default '' comment '快递公司代码'")
    private String code;

    @Column(columnDefinition = "tinyint(3) not null default 0 comment '排序'")
    private int sort;
}
